package com.liyy.platform.other.mytest;

import java.io.IOException;
import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;

public class TestSocket
{
	public static void main(String [] args) throws UnknownHostException, IOException{
		Socket socket =new Socket("127.0.0.1",6666);
		OutputStream os=socket.getOutputStream();
		DataOutputStream dos=new DataOutputStream(os);
		dos.writeUTF("666");
		dos.flush();
		dos.close();
		os.close();
	}
	
}